// Make sure propsUnique contains one key for every
// property so we end up with a unique list of properties
- allProps.map(p => propsUnique[p] = null);
+ allProps.map(p => (propsUnique[p] = null));
}
return Object.keys(propsUnique).sort();
}
cb();
});
- return callback => cb = callback;
+ return callback => (cb = callback);
}
function waitSignal(object, signal) {
cb();
});
- return callback => cb = callback;
+ return callback => (cb = callback);
}
function extractBootTimestamp() {
subtitle, body, options);
dialog.open();
- dialog.connect('closed', () => this._accessDialog = null);
+ dialog.connect('closed', () => (this._accessDialog = null));
this._accessDialog = dialog;
}
opacity: 0,
duration: VIEWS_SWITCH_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- onComplete: () => this.opacity = 255
+ onComplete: () => (this.opacity = 255)
});
if (animationDirection == IconGrid.AnimationDirection.OUT)
let [deviceNames] = params;
let devices = 0;
- deviceNames.forEach(n => devices |= AudioDevice[n.toUpperCase()]);
+ deviceNames.forEach(n => (devices |= AudioDevice[n.toUpperCase()]));
let dialog;
try {
this._pluginDir = Gio.file_new_for_path(Config.VPNDIR);
try {
let monitor = this._pluginDir.monitor(Gio.FileMonitorFlags.NONE, null);
- monitor.connect('changed', () => this._vpnCacheBuilt = false);
+ monitor.connect('changed', () => (this._vpnCacheBuilt = false));
} catch (e) {
log(`Failed to create monitor for VPN plugin dir: ${e.message}`);
}
_updateCount() {
let count = 0;
- this._sources.forEach(source => count += source.unseenCount);
+ this._sources.forEach(source => (count += source.unseenCount));
count -= Main.messageTray.queueCount;
this.actor.visible = (count > 0);
opacity: 0,
duration: FADE_OUT_DIALOG_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- onComplete: () => this.state = State.FADED_OUT
+ onComplete: () => (this.state = State.FADED_OUT)
});
}
});
delay,
duration,
mode: Clutter.AnimationMode.LINEAR,
- onComplete: () => ripple.visible = false
+ onComplete: () => (ripple.visible = false)
});
}
'network-transmit-receive');
this._source.policy = new MessageTray.NotificationApplicationPolicy('gnome-network-panel');
- this._source.connect('destroy', () => this._source = null);
+ this._source.connect('destroy', () => (this._source = null));
Main.messageTray.add(this._source);
}
}
this.actor = new St.Bin();
this.actor.connect('destroy', this._onDestroy.bind(this));
- this.actor.connect('notify::mapped', () => this._flipped = false);
+ this.actor.connect('notify::mapped', () => (this._flipped = false));
}
_sync() {
if (!this._source) {
this._source = new MessageTray.Source(_("Thunderbolt"),
'thunderbolt-symbolic');
- this._source.connect('destroy', () => this._source = null);
+ this._source.connect('destroy', () => (this._source = null));
Main.messageTray.add(this._source);
}
_showPadOsd(display, device, settings, imagePath, editionMode, monitorIndex) {
this._currentPadOsd = new PadOsd.PadOsd(device, settings, imagePath, editionMode, monitorIndex);
- this._currentPadOsd.connect('closed', () => this._currentPadOsd = null);
+ this._currentPadOsd.connect('closed', () => (this._currentPadOsd = null));
return this._currentPadOsd.actor;
}
this.scrollAdjustment.ease(index, {
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
duration: WORKSPACE_SWITCH_TIME,
- onComplete: () => this._animatingScroll = false
+ onComplete: () => (this._animatingScroll = false)
});
}